import {instStatusColor} from '@/common/instStatusColor.js';
export default {
    methods:{
        getStatusHtml(item) {
            return this.getStyByStatus(item);
        },
        getStyByStatus(status) {
            let str = "";
            let sts = instStatusColor[status];
            if (sts) {
                let color = sts.color;
                let background = sts.background;
                let name = sts.name;
                str = "<span class='inst-list-status' style='color:" + color + ";background:" + background + "'>" + name + "</span>";
            } else {
                str = "<span class='inst-list-status'>" + status + "</span>";
            }
            return str;
        },
    }
}